{extend name="base" /}
{block name="title"}后台管理-网络报修管理{/block}
{block name="main"}
<div class="widget-body">
    模糊字批量删除：<input type="text" name="key">
    <!-- <a href="{:url('evalua/forbidden')}">显示禁用评论</a> -->
    <table id="users" class="table table-striped table-bordered dataTable">
        <thead>
            <tr>
                <th>标题</th>
                <th>测评内容</th>
                <th>测评图片</th>
                <th>测评分类</th>
                <th>测评人</th>
                <th>测评时间</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
            {volist name="evalua" id="vo"}
            <tr title="{$vo.eContent}">
                <td pid="{$vo.eId}">{$vo.eTitle}</td>
                <td>
                    <div class="line-limit-length">{$vo.eContent}</div>
                </td>
                <td>{$vo.ePic}</td>
                <td>{$vo.fName}</td>
                <td>{$vo.name}</td>
                <td>{$vo.etime}</td>
                <td>
                    <div class="btn-group">
                        <a class="btn btn-small dropdown-toggle" data-toggle="dropdown" href="#">
                            操作
                            <span class="caret"></span>
                        </a>
                        <ul class="dropdown-menu pull-right">
                            <li>
                                <a href="{:url('del',['id'=>$vo.eId])}">
                                    <i class="icon-trash"></i> 删除
                                </a>
                            </li>
                        </ul>
                    </div>
                </td>
            </tr>
            {/volist}
        </tbody>
    </table>
</div>

<script src="__STATIC__/assets/js/jquery.min.js"></script>
<script>
    $("input[name='key']").on("change",function(){
        console.log($(this).val());
        $.ajax({
            type: 'post',
            url: "{:url('Evalua/dellot')}",
            data: {
                "key":$(this).val()
            },
            success: function (data) {
                console.log(data);
                location.href = "";
            },
            error: function (error) {

            }
        })
    })
</script>
{/block}
